<?php

namespace App\Providers;

use App\Models\Wxuser;
use App\Models\WxuserStar;
use App\Models\WxuserWxcard;
use App\Observers\WxuserWxCardsObserver;
use App\Observers\WxuserStarsOberserver;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        WxuserWxcard::observe(WxuserWxCardsObserver::class);

        WxuserStar::observe(WxuserStarsOberserver::class);

        Schema::defaultStringLength(191);//数据库编码问题
    }

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}
